//
//  WFSetCell_second.m
//  谷居
//
//  Created by dllo on 16/6/30.
//  Copyright © 2016年 刘万方. All rights reserved.
//

#import "WFSetCell_second.h"
#import "Masonry.h"
@implementation WFSetCell_second

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell {
    [super createCell];
    _cachesLabel = [[WFLabel alloc] init];
    [self.contentView addSubview:_cachesLabel
     ];
    [_cachesLabel release];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    [_cachesLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.equalTo(self.contentView);
        make.right.equalTo(self.contentView).offset(-15);
        
        
        
        make.height.equalTo(self.rightLabel.mas_height);
        make.width.greaterThanOrEqualTo(@60);
    }];
    
    
}

@end
